<?php
session_start();
include '../import_admin.php';

if (isset( $_SESSION) && isset( $_SESSION[SESSION_USERNAME]) && ! empty( $_SESSION[SESSION_USERNAME]) && isset( $_SESSION[SESSION_ROLE]) && ! empty( $_SESSION[SESSION_ROLE])) {
    changeDocumentURL( SITE_ADMIN . "index.php");
} else {
    $layout = new LayoutController();
    echo $layout->viewLogin();
}

?>